<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<link rel="stylesheet" type="text/css" href="../template/css.css" media="all" />
<title>QueroTeto</title>

</h:head>
<h:body>
	<div id="corpo">
		<ui:include src="/template/topo.xhtml"/>
		<ui:include src="/template/menu.xhtml"/>
		
		<div id="conteudo">
			<div id="centro">		
				#{cadastroPropagandaBean.msg}		
				<h:form id="form">
					<p:panel header="Propaganda">
						<h:panelGrid columns="2" cellpadding="5">

							<h:outputText value="Assunto: " />
							<p:outputLabel
								value="#{cadastroPropagandaBean.propaganda.assunto}" />

							<h:outputText value="Banner: " />
							<p:outputLabel
								value="#{cadastroPropagandaBean.propaganda.banner}" />

							<h:outputText value="Descricao: " />
							<p:outputLabel
								value="#{cadastroPropagandaBean.propaganda.descricao}" />

							<h:outputText value="Email: " />
							<p:outputLabel value="#{cadastroPropagandaBean.propaganda.email}" />

							<h:outputText value="Link: " />
							<p:outputLabel value="#{cadastroPropagandaBean.propaganda.link}" />

							<h:outputText value="Responsavel: " />
							<p:outputLabel
								value="#{cadastroPropagandaBean.propaganda.responsavel}" />

							<h:outputText value="Telefone: " />
							<p:outputLabel
								value="#{cadastroPropagandaBean.propaganda.telefone}" />

							<h:outputText value="Tipo: " />
							<p:outputLabel value="#{cadastroPropagandaBean.propaganda.tipo}" />

					
							<p:commandButton value="Editar" type="submit"
								action="#{cadastroPropagandaBean.editar}" ajax="false">
								<f:param name="id" value="#{cadastroPropagandaBean.propaganda.id}" />
							</p:commandButton>
							<p:commandButton value="Voltar" type="submit"
								action="#{cadastroPropagandaBean.cancelar}" ajax="false" />
							<p:commandButton value="Excluir propaganda" type="submit"
								action="#{cadastroPropagandaBean.excluir}"
								onclick="return confirm('Deseja realmente Excluir?')"
								ajax="false">
								<f:param name="id"
									value="#{cadastroPropagandaBean.propaganda.id}" />
							</p:commandButton>
						
						</h:panelGrid>

					</p:panel>
				</h:form>  
			</div>	
		</div>
		<div id="both" align="center"></div>
		<ui:include src="/template/rodape.xhtml"/>
	</div>
</h:body>
</html>